<?php
echo 2222;die;
if(PHP_VERSION < 7.1){
    echo "PHP版本过低，本系统需求php>7.1";die;
}
//echo "<pre>";
//print_r($_SERVER);
//echo "</pre>";
$domain  = $_SERVER['HTTP_HOST'];
if (strstr($domain, 'www')) {
    $headeres_url = 'https://micuer.com'.$_SERVER["REQUEST_URI"];
    header("Location:{$headeres_url}");
}
if (strstr($domain, 'tv.')) {
    $headeres_url = 'https://micuer.com'.$_SERVER["REQUEST_URI"];
    header("Location:{$headeres_url}");
}
if (strstr($domain, 'music.')) {
    $headeres_url = 'https://micuer.com'.$_SERVER["REQUEST_URI"];
    header("Location:{$headeres_url}");
}
if (strstr($domain, 'test.')) {
    $headeres_url = 'https://micuer.com'.$_SERVER["REQUEST_URI"];
    header("Location:{$headeres_url}");
}
if (strstr($domain, 'qq.')) {
    $headeres_url = 'https://micuer.com'.$_SERVER["REQUEST_URI"];
    header("Location:{$headeres_url}");
}
if (strstr($domain, 'new.')) {
    $headeres_url = 'https://micuer.com'.$_SERVER["REQUEST_URI"];
    header("Location:{$headeres_url}");
}
if (strstr($domain, 'm.')) {
    $headeres_url = 'https://micuer.com'.$_SERVER["REQUEST_URI"];
    header("Location:{$headeres_url}");
}

include "./public/index.php";

